package day19;

public class Person {
    private String name;
    private int age;
    private void eat(int n){
        System.out.println("今天要吃"+n+"碗饭!!");
    }
    private void find(String s){
        System.out.println(name+"正在寻找了"+age+"年的"+s);
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}

